package com.whsxt;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @Author: caoqingwen
 * @CreateTime: 2021-03-15 14:16
 * @Description:
 */
@SpringBootApplication
@EnableEurekaClient
@EnableCaching  //把缓存托管给redis
@EnableScheduling   //开启定时任务
@EnableFeignClients
public class ProductServiceApplication {


    public static void main(String[] args) {
        SpringApplication.run(ProductServiceApplication.class, args);
        System.out.println(">>>>>>>>>>product-service启动成功<<<<<<<<<");
    }


}
